import http from "@/untils/request";

interface ResType {
    code: number
    message: string
    token: string

}


interface LoginFormType {
    username: string,
    password: string,
    remember: boolean
}

export const LoginApi = (data: LoginFormType) => {
    return http<ResType>({
        url: "/login",
        method: "post",
        data
    })
}